class Subscription < ActiveRecord::Base
  belongs_to :topic
  belongs_to :user
  
  def owned_by?(user)
    self.user == user
  end
  
  def moderated_by?(user)
    topic.moderated_by? user
  end
  
  def moderatorship_for_user(user)
    topic.moderatorship_for_user user
  end
  
  def locked?
    topic.locked?
  end
  
  def private?
    topic.private?
  end
end
